package com.example.academic_affairs_system.model.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * 修改密码
 *
 * @author hjx
 * @since 2023/02/09 12:16 AM
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("修改密码所需要的信息")
public class EditPasswordDTO {
  @ApiModelProperty("修改密码")
  @NotBlank(message = "修改的密码")
  @Min(value = 6, message = "长度最少6位")
  String pwd;

  @ApiModelProperty("确认密码")
  @NotBlank(message = "确认密码")
  String pwd2;
}
